// Copyright (C) 2012 Volkov Zachar
// This file is part of the "zAxis Game Engine".
// For conditions of distribution and use, see copyright notice zx_Common.hpp

#include "zx_FileSystem.hpp"

namespace zx {

//----------------------------------------------------------------------------//
//----------------------------------------------------------------------------//
ArchiveFile::ArchiveFile( DataStreamPtr _stream ) : m_stream( _stream )
{
     assert( m_stream != 0 );
     FileSystem::_RegisterArchiveFile( m_stream -> GetName(), this );
}
//----------------------------------------------------------------------------//
ArchiveFile::~ArchiveFile( void )
{
     FileSystem::_UnregisterArchiveFile( m_stream -> GetName() );
}
//----------------------------------------------------------------------------//
//----------------------------------------------------------------------------//

} // namespace zx
